//package com.cxb.listener;
//
//import com.cxb.event.MyApplicationEvent;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.ApplicationListener;
//import org.springframework.stereotype.Component;
//
//@Component
//@Slf4j
//public class MyListener implements ApplicationListener<MyApplicationEvent> {
//    @Override
//    public void onApplicationEvent(MyApplicationEvent event) {
//        log.info("MyListener监听到的事件:{}", event.getSource());
//    }
//
//}
